package model // admin/system/model/sys_post.go

import (
	"time"
)

// SysPost 岗位信息表
type SysPost struct {
	PostID     int64      `json:"post_id" gorm:"column:post_id;primaryKey;autoIncrement;comment:岗位ID"`
	PostCode   string     `json:"post_code" gorm:"column:post_code;size:64;not null;comment:岗位编码"`
	PostName   string     `json:"post_name" gorm:"column:post_name;size:50;not null;comment:岗位名称"`
	PostSort   int        `json:"post_sort" gorm:"column:post_sort;not null;comment:显示顺序"`
	Status     string     `json:"status" gorm:"column:status;size:1;not null;comment:状态（0正常 1停用）"`
	CreateBy   string     `json:"create_by" gorm:"column:create_by;size:64;default:'';comment:创建者"`
	CreateTime *time.Time `json:"create_time,omitempty" gorm:"column:create_time;comment:创建时间"`
	UpdateBy   string     `json:"update_by" gorm:"column:update_by;size:64;default:'';comment:更新者"`
	UpdateTime *time.Time `json:"update_time,omitempty" gorm:"column:update_time;comment:更新时间"`
	Remark     *string    `json:"remark,omitempty" gorm:"column:remark;size:500;comment:备注"`
}

// TableName 获取表名
func (SysPost) TableName() string {
	return "sys_post"
}
